package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 订单支付记录对象 rx_order_record
 *
 * @author hjf
 * @date 2025-03-06
 */
public class RxOrderRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 支付方式1为微信支付2支付宝支付
     */
    @Excel(name = "支付方式1为微信支付2支付宝支付")
    private Integer payType;

    /**
     * 第三方订单号,也就是支付宝或微信的单号
     */
    @Excel(name = "第三方订单号,也就是支付宝或微信的单号")
    private String orderno;

    /**
     * 我方的订单号
     */
    @Excel(name = "我方的订单号")
    private String meOrderno;

    /**
     * 支付的金额
     */
    @Excel(name = "支付的金额")
    private BigDecimal money;

    /**
     * 支付的时间
     */
    @Excel(name = "支付的时间")
    private String payTime;

    /**
     * 订单的id
     */
    @Excel(name = "订单的id")
    private Long orderId;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public String getOrderno() {
        return orderno;
    }

    public void setMeOrderno(String meOrderno) {
        this.meOrderno = meOrderno;
    }

    public String getMeOrderno() {
        return meOrderno;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("payType", getPayType())
                .append("orderno", getOrderno())
                .append("meOrderno", getMeOrderno())
                .append("money", getMoney())
                .append("payTime", getPayTime())
                .append("orderId", getOrderId())
                .toString();
    }
}
